<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Edit Flights</title>
</head>
<body>
<p>

</p>
<form action="employee/updateFlights.do" method="POST" id="updateFlights">
<table style="COLOR: #004040; FONT-WEIGHT: bold; FONT-SIZE: x-small; FONT-FAMILY: 'Verdana'; 
vertical-align: top; border-bottom-style:solid; ; border-bottom-color: gray; 
					border-right-style:solid; ; border-right-color: gray; 
					border-left-style:solid; ; border-left-color: gray; border-top-style:solid; ; border-top-color: gray" align="center">
	<tr>
			<td align="right">id*</td>
			<td>
				<input type="text" id="id" name="id" class="required" maxlength="10" value="<c:out value='${flight.id} }'></c:out>"> 
			</td>
		</tr>
	
	<tr>
			<td align="right">Flight Number *</td>
			<td>
				<input type="text" id="flightNumber" name="flightNumber" class="required" minlength="1" maxlength="45"  readonly="readonly" value="<c:out value='${flight.flightNumber}'></c:out>" >
				<div id="divCheckUser" style="display:none; color: red">User already exists</div>
				
			</td>
		</tr>
		<tr>
			<td align="right">AirlineName *</td>
			<td>
				<input type="text" id="airlineName" name="airlineName" class="required" minlength="1" maxlength="45" value="<c:out value='${flight.airlineName}'></c:out>">
			</td>
		</tr>
		<tr>
			<td align="right">Source *</td>
			<td>
				<input type="text" id="source" name="source" class="required" minlength="1" maxlength="45" value="<c:out value='${flight.source}'></c:out>">
			</td>
		</tr>
		<tr>
			<td colspan="2">&nbsp;</td>
		</tr>
		<tr>
			<td align="right">Destination *</td>
			<td>
				<input type="text" id="destination" name="destination" maxlength=100 class="required" value="<c:out value='${flight.destination}'></c:out>">
			</td>
				<td align="right">numSeats *</td>
			<td>
				<input type="text" id="numSeats" name="numSeats"  class="required" maxlength="100" value="<c:out value='${flight.numSeats}'></c:out>">
			</td>
		</tr>
		
		<tr>
			<td align="right">Pilot Name *</td>
			<td>
				<input type="text" id="pilotName" name="pilotName" class="required" maxlength="100" value="<c:out value='${flight.pilotName}'></c:out>">
			</td>
			<td align="right">Intermediate *</td>
			<td>
				<input type="text" id="intermediate" name="intermediate" maxlength="100" value="<c:out value='${flight.intermediate}'></c:out>">
			</td>
		</tr>
		<tr>
			<td align="right">Intermediate Arrival Time*</td>
			<td>
				<input type="text" id="intermediateArrivalTime" name="intermediateArrivalTime" class="required" maxlength="100" value="<c:out value='${flight.intermediateArrivalTime} }'></c:out>">
			</td>
		</tr>
		<tr>
			<td align="right">Intermediate Departure Time*</td>
			<td>
				<input type="text" id="intermediateDepartureTime" name="intermediateDepartureTime" class="required digits" maxlength="5" value="<c:out value='${flight.intermediateDepartureTime} }'></c:out>">
			</td>
		</tr>
		
		<tr>
			<td align="right">Time Of Flight*</td>
			<td>
				<input type="text" id="timeOfFlight" name="timeOfFlight" class="required" maxlength="100" value="<c:out value='${flight.timeOfFlight}'></c:out>"> 
			</td>
		</tr>
		<tr>
		<td colspan=4 align= "center">
			<div id="datepicker1" ></div>
		
		</td>
		</tr>
			
		
		<tr>
			<td align="right">Ticket Price*</td>
			<td>
				<input type="text" id="ticketPrice" name="ticketPrice" class="required" maxlength="10" value="<c:out value='${flight.ticketPrice} }'></c:out>"> 
			</td>
		</tr>
		<tr>
			<td align="right">Status*</td>
			<td>
				<input type="text" id="status" name="status" class="required" maxlength="10" value="<c:out value='${flight.status}'></c:out>"> 
			</td>
		</tr>
		
		<tr>
			<td colspan=4 align="center">	
			<input type="submit" name="Submit" id="submit" value="Submit" style="FONT-WEIGHT: bold; FONT-FAMILY: 'Verdana'; FONT-SIZE: x-small;"> &nbsp;
			<input type="reset" value="Clear" style="FONT-WEIGHT: bold; FONT-FAMILY: 'Verdana'; FONT-SIZE: x-small;"></input> </td>
		</tr>									
</table>
</form>					
					
					
</body>
</html>